<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class AbnormalCar
 * @package App\Models
 * @version January 3, 2018, 7:54 am UTC
 *
 * @property string vpl_number
 * @property int type
 * @property string reason
 */
class AbnormalCar extends Model
{
    use SoftDeletes;

    public $table = 'abnormal_cars';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'vpl_number',
        'type',
        'reason'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'vpl_number' => 'string',
        'reason' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'vpl_number' => 'required',
        'type' => 'required'
    ];

    
}
